<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('ask/index')}">问卷题目</a></li>
			<li><a href="{:url('ask/add',['listid'=>$listid,'status'=>$status])}">添加</a></li>
		</ul>
	
		
		<form method="post" class="js-ajax-form margin-top-20" action="{:url('ask/listOrder')}">
		
		
		
			<div class="table-actions">
				<button class="btn btn-primary btn-sm js-ajax-submit" type="submit">{:lang('SORT')}</button>
			</div>		
			<table class="table table-hover table-bordered margin-top-20">
				<thead>
					<tr>
						<th width="50">{:lang('SORT')}</th>
						<th width="50">ID</th>
						<th>标题</th>

						<th width="160">{:lang('ACTIONS')}</th>
					</tr>
				</thead>
				<tbody>
					<php>

					</php>
					<foreach name="list" item="vo">
					<tr>
						<td>
							<input name="list_orders[{$vo.id}]" class="input-order" type="text" value="{$vo.list_order}">
						</td>				
						<td>{$vo.id}</td>
						<td>{$vo.title}</td>



						<td>
							<a class="btn btn-xs btn-primary" href="{:url('ask/edit',array('id'=>$vo['id'],'listid'=>$listid,'status'=>$status))}">{:lang('EDIT')}</a>
							<if condition="$status neq 0">
							<else/>
								<a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('ask/delete',array('id'=>$vo['id'],'status'=>$status))}">{:lang('DELETE')}</a>
							</if>

						</td>
					</tr>
					</foreach>
				</tbody>
			</table>
		</form>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>